from applications.extends.AiUtils import AIGC


# 发送消息
def chat_send_message_func(data):
    aigc = AIGC()
    status, data = aigc.send_text_message(data.message)
    result = []
    if status:
        result.append({"name": "紫东太初", "value": data})
    else:
        print("获取文本信息失败", data)
    return True, result